package com.example.demo.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/request")
public class requestController {
    @RequestMapping("/param1")
    public String param1(String userName) {
        System.out.println("接收的参数为："+userName);
        return "接收的参数为：" + userName;
    }
}
